Applied Materials Interview Question

1. Median of pixel in a Matrix 2. Rand() func implementation.