Swift Solution found for Swift Problem