Ad
  • Custom User Avatar

    looks like you get a multidimensional array, i.e. int[][] arr = {{5,0},{8,3},{3,5},{2,1}};
    first int indcates people getting on bus, second int indicates people getting off bus. You can probably just do a for loop that adds all of the first
    integers and subtracts all of the second integers, should return just an int value of the remaining number of people on the bus.