arr
순회true
반환true
반환false
function checkIfExist(arr: number[]): boolean {
const history = new Set<number>()
for(const num of arr) {
if(history.has(num * 2)) return true
if(history.has(num / 2)) return true
history.add(num)
}
return false
};