JPMorganChase interview question

Write Python codes to simulate the dice roll