Question 1
Write a function near_multiple(n, k) that returns the multiple of the positive integer k which is nearest to the non-negative integer n. If n is exactly in the middle of two multiples, return the larger one.
NOTE: This is a function type question, you don't have to take input or print the output, just have to complete the required function definition.
Example
near_multiple(13, 5) -> 15
near_multiple(12, 5) -> 10
Your task
Implement this function:
def near_multiple(n: int, k: int) -> int:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: n, k.
Example
Input
13
5
Output
15