def find_permutations(nums: list[int]) -> list[list[int]]:
    """

    Args:
        nums:

    Returns:

    Examples:
        >>> find_permutations([1, 3, 5])
        [[5, 3, 1], [3, 5, 1], [3, 1, 5], [5, 1, 3], [1, 5, 3], [1, 3, 5]]

    """

    """ALGORITHM"""

    # DS's/res
    uniq_perms = [[]]

    for curr_num in nums:
        uniq_perms = [
            perm[:insertion_idx] + [curr_num] + perm[insertion_idx:]
            for perm in uniq_perms
            for insertion_idx in range(len(perm) + 1)
        ]

    return uniq_perms