MediaAgility Interview Question

Pattern Problem in Java