Moka (Indonesia) Interview Question

Basic logic