As reported: Goldman Sachs Analyst Superday, software engineering principles round (Bangalore, 2025): Integer to Words in the Indian number format.
Convert a non-negative integer n to English words using the Indian numbering system: after the hundreds, digits are grouped in twos — Thousand (10³), Lakh (10⁵), Crore (10⁷). Capitalise every word and separate words with single spaces (as in LeetCode 273); 0 is "Zero".
Example 1
n = 123456
-> "One Lakh Twenty Three Thousand Four Hundred Fifty Six"
Example 2
n = 123456789
-> "Twelve Crore Thirty Four Lakh Fifty Six Thousand Seven Hundred Eighty Nine"
Constraints: 0 ≤ n ≤ 999999999.
Code runner format: one JSON value per line: n. Implement toIndianWords(n); the harness prints the string as JSON.