IBM interview question

There was 3 coding rounds