IBM Interview Question

1st round coding assessment they give a two types of coding question