Officer buys bike for man who walked over 3 hours to work