BAT interview question

Please describe the position for this programming