IBM Interview Question

They asked Pretty simple coding and Sql