Tata Group Interview Question

Tell us the most difficult coding question you found and how did you solve ?