reversebinary - added solution in C