Ruby and Java Solutions to problems discussed on geeks for geeks.