Thoughtworks interview question

apti,coding,long coding