Atria Logic interview question

How to implement one hot encoding