count number of 2's from 0 to number
compute median as input comes into array
reverse a string in C