MWR InfoSecurity Interview Question

Solve an algorithm in Ruby