https://prgrmramit.blogspot.com/2021/09/exercise6bblet-us-c-solution.html