Shopify interview question

Simplify a filepath in a unix system.

Interview Answer

Anonymous

12 July 2023

Iterate the loop till you doesn't reaches the end of string. If you encounter a "/" then ignore it.