OneFin interview question

In second technical round, they gave me to solve lexographical sorting without using strings