Rakuten interview question

Round Robin Code