Royal Solutions Interview Question

Very easy