Create a reusable progress bar component that visually represents a percentage value with customizable max value.
Asked in frontend interviews at Uber, Google and Nightfall