IBM interview question

Hackerrank Coding Assignment about BUS controller