Geek | During interview I write the code


During interview the boss asked me to write a code and then this is my response. I still do not know why they reject me.