GE Interview Question

Im currently awaiting coding round results