Implement a function called calculate_digit_sum that computes the sum of the last digits of the multiples of a given integer, m, up to another integer, n.
Functionality Requirements:
The function should take two integer parameters:
n: the upper limit (inclusive) for counting multiples.
m: the integer whose multiples are considered.
The function should return a single integer which represents the sum of the last digits of all multiples of m from m up to n.
Input/Output Requirements:
Input:
The function will accept two integers, n (0 ≤ n ≤ 10^9) and m (1 ≤ m ≤ 10^9).
Output:
The function should return an integer representing the sum of the last digits of the multiples of m.
Implementation Instructions:
Write the solution in a file named /app/solution.py.
Ensure the function signature remains as provided:
python
def calculate_digit_sum(n: int, m: int) -> int:
Make sure the implementation adheres to the efficiency requirements given the potential size of n and m.