Angry Professor Hackerrank Python Solution Logic Problem

Angry Professor Hackerrank Python Solution Logic Problem