NVIDIA interview question

LeetCode medium level question on byte operations.