Axtria interview question

ques. from c++,java,guess estimates puzzles