IBM Interview Question

they asked me to do a coding problem