Define a subroutine that takes an integer array as its input and sorts array element values in an ascending order. For example, if the input of the array is studentGrades = {85, 70, 90, 77}, the subroutine should sort the array into {70, 77, 85, 90}. Do not use the Array.Sort() function to complete this question. You can implement any sorting algorithm such as bubble sorting.