Amazon Interview Question

One was based on string comparison (easy) and another one was on file systems (medium).