HP Inc. interview question

Designing a ludo type react component