BEML interview question

technical