Mechsoft interview question

machine test round was quite difficult