Copart interview question

Write useState and common JS structure