added Ruby solution for 1.24