we need to store frequencies of students who passed that means marks >=36
which are 36,37,38 ,...100 it is 65 in total
we can have an array of 65 int having number of students who get marks >=36 in order like in first box number of student got 36 marks and goes on last box have number of student having 100 marks.