JPMorganChase Interview Question

Write Python codes to simulate the dice roll