Smartodds interview question

Converting fractional into decimal odds