LTM Limited Interview Question

- Write a pattern matching code?