Samsung Electronics Interview Question

ruby basic