In basketball a three-pointer scores 3, a field goal scores 2 and a free throw scores 1. Write total_points(threes, twos, free_throws) returning a player's total score.
Examples
Input: threes = 2, twos = 5, free_throws = 3
Output: 19
Constraints
0 <= threes, twos, free_throws <= 1000
Goals
- Weight several counts by different point values
- Return an integer total