IBM Interview Question

First step usually consist of Hackerank coding challenge but this time they changed.