Element Location in Column Major Order

Company: Mathworks

Difficulty: medium