Pregunta de entrevista de Amazon

One coding question was there in second round about Round robin scheduling algorithm