함수에 인자를 전달할 때는 call by value 가 되지만,
ref 키워드를 쓰면 call by reference 가 된다
참조가 되면 값의 원본이 변경되는 것이다
https://blockdmask.tistory.com/605