Bank BTPN interview question

Simple coding questions on interview