Australian software engineer got asked algorithm question when entering US
news.com.au
news.com.au
> Had the same experience 12 years ago: admitted I am developing linux device drivers, and had to explain differences between kernel 2.4 and 2.6 APIs. The guy actually understood it.
Testing occupational expertise is not a bad way to find people who are lying. To be able to explain the difference between kernel 2.4 and 2.6 APIs or how to balance a binary search tree are questions one could not possibly answer without actually being in that profession.
Let’s say you’re a hitman traveling to Malaysia to take out the estranged brother of a dictator. Before you go, you’re given a fake passport and character sheet telling you your profession, your family situation, etc. It’s pretty easy to answer questions like “how long have you been working as a photographer?” or “how did you meet your wife?” but a lot more difficult to prepare for questions like “What is the best lense for close ups?”
Hopefully for the estranged brother, Mr. Hitman doesn't happen to enjoy a photography hobby in his spare time. :)
Then again, high-end assassins are probably adept at photography anyways. Part of their job is planning, and that involves surveilling targets prior.
Or to just say you are a taxi driver / stylist / etc?
The likelihood of that being true is incredibly low. What's worse, we know that typically people specialize within fields; a kernel hacker probably knows nothing whatsoever about using Ruby on Rails, but that might be the question the border agent googles up (or the web dev might get asked about kernel APIs).
Plus: making excuses for this makes you complicit in whatever evil it begets, so maybe you should stop making excuses for it.
Getting hassled by immigration is evil?
You should travel with my Albanian friends. Apparently every immigration person in the world is evil.
I think enough specialization also protects you against the standard questions on file.
Not very hard. It won't deter someone willing to learn EE 101 but will deter the guy who plans to overstay his visa and work as a dishwasher in his cousin's restaurant.
At best they will google "<profession> interview questions" and ask the first one, and do word-by-word matching on the answer.
For Electrical Engineering, the first one that comes up for me is "Why star delta starter is preferred with induction motor?".
"Uhhh... ok." Was the reply.
1. There are many accounts exactly to the opposite, non-US citizens having traveled to and from the US for decades without this level of questioning. If there is a policy change, then it should be clear to travelers; such a change doesn't just affect non-citizens, citizens working to bring in employees, guest lecturers, business associates, etc, are made to look foolish as well when they can't arrange the meeting. They don't have to publish the questions at all, but there should be some guarantee that the CBP is actually qualified to judge the answers.
2. Most of this should be done by the consular at the embassy when you apply for the visa, well before you even get to the border. CBP guards see dozens of persons each day with a wide breadth of employment backgrounds - is it really required by these guards to be that knowledgable in so many subjects to perform their duties? Or is it arbitrary checks based on what the guard themselves knows? The contention with this is that no one knows what the actual policy is, so it's hard to say whether or not the guards are doing checks they're supposed to be doing or if the guard even has the requisite knowledge themselves to judge a yes/no of an answer. A questionnaire for professions is equally troubling since, as many can recount with recruiters marking perfectly sound answer as "wrong" because the answers weren't what was written on the sheet, or the recruiter didn't understand the answer.
3. Some of the criteria are really strange for using to judge whether or not someone is telling the truth - the qualifier mentioned elsewhere in the discussion about asking someone's wife what her husband worked on seems pretty asinine; how many people from the DC area tell their spouses by requirement they work for the DoD and nothing more? How many contractors that land a government contract are 100% open with their spouses about what they work on? Certainly other governments have similar restrictions and NDAs for their employees/contractors. Or even once you start to get into specialized topics, how much can your spouse really understand about what you're doing if they're not in the same field? For a simple example, I work in just IT support, and my partner is fairly computer illiterate. If pressed, she probably could tell someone I work with databases, but not much beyond that, even though I've explained what I do at her request multiple times. I get there can be levels of validation here (does she at least confirm he's a programmer), but the validity of such a test question really depends on a lot of variables, and the value judgement of "how much should they know" will change drastically depending on very common circumstances.
People are quick to pin this on the Trump Administration because it is taking a very hard stance towards immigration and not addressing the issue at hand. While it may be individual guards being emboldened into getting this aggressive, the question becomes why is the administration not making a statement on it? Why has the CBP not made a statement one way or another on whether these are legitimate actions? With the EU planning to end free-travel for US citizens and the Trump Administration trying to play hardball with the deal, it's pretty easy to wonder why the current administration isn't dealing with something that a lot of people find to be ridiculous and wrong. With a president that is willing to tweet and comment about celebrity impersonations and individual news stories, it seems strange that they'd turn a blind eye to something that has a major impact on US relations with the entire rest of the world, especially since there are numbers to show that interest in US travel is declining.
As a final aside, international flights, especially trans-atlantic, can be pretty rough on sleep schedules and just in general. I just went from St. Petersburg Russia to Seoul, and I'm not sure that I'd be able to answer difficult questions about my profession on the spot without some time or resources. It's pretty bizarre too since entering Korea took about 30 seconds at the passport control. I'm a US citizen and I haven't even been able to enter the US that quickly in all my travels.
Australians don't apply for a visa at a consulate, they're a part of the Visa Waiver Program.
This is classic security theater. Inconveniencing legitimate people while leaving gaping holes for any actual crook to exploit.
In politics and bureaucracies, orchestrating a perception is more important than instrumenting a reality.
And before you say things are not affordable to people in those professions, flights are under $200 right now. A person of modest means could feasibly save up for an overseas vacation.
My theory is they have KPIs to hit and found denying entry based on challenging field-related puzzles is a decent way to do it. An indicator of how many actual thwarted espionage or terror events is likely harder to quantify (and for most, it's probably zero).
[1] I was wrong. He was on a 10 day vacation.
The article quotes him as saying he was on vacation in the US.
It's just point and shoot really.
And it being par for the course does not excuse Trump from blame for having his departments use it in an arena where it has been proved ineffective.
> Testing occupational expertise is not a bad way to find people who are lying.
> To be able to explain the difference between kernel 2.4 and 2.6 APIs or how
> to balance a binary search tree are questions one could not possibly answer
> without actually being in that profession.
https://en.wikipedia.org/wiki/Con_KolivasEdit: formatting
I'd go on a tourist visa. Why would I run the risk of being denied on a business visa?
You expect me to know how to balance a b-tree without referring to Stack Overflow?
Because this is a fairly technical forum (and some people were asking about language specifics or runtime characteristics) I'll let you in on the question even though I left it out of the journalist interviews - hopefully this information will help you make sense of the article/interaction for yourself:
Write a Python program to take two numbers as input and if the sun is bigger than 100, output "this is a large number" but if it is less than 100 output the sum of the numbers.
Lol!
I think the basic idea - questioning people about things they ought to know, given who they claim to be - is a good one.
However, it only makes sense if the one doing the questioning is able to judge the quality of the answer - or, for that matter, determine whether your inability to answer satisfactorily is because you bluffed - or if you're just a bit outside your professional comfort zone.
(I would probably have to answer 'software engineer', as that is what my business card says - however, I am much more of a hardware/systems guy in practice, only our HR department is completely unable to change my title to something a bit more descriptive. If speaking to another engineer, I wouldn't have any problems convincing him of my bona fides - however, if a CBP officer just looks up question #13 in the 'SW engineer' quiz - I may be in trouble.
It's an awful idea. False negatives. Discriminates against people with harder professions. Wouldn't keep out determined people
As for false negatives, I wouldn't be too concerned as long as you got to talk to someone reasonably well versed in your field. Also, as suggested by golergka and rconti - they probably use the questions as a way to elicit a response from you and judge that, more than your actual answers. That makes a lot of sense to me, now that I pause to think of it for a second.
They're looking at your overall attitude, not checking your knowledge of trivia. Answering the question about inverting a binary tree wrongly still means you understand what "binary tree" is and can at least come up with a couple of sentences with that term that sound coherent and resemble what is written in Wikipedia in broadest terms. For comparison, ask your non-engineering friends to answer the same question, even to try to fake an answer as best as they can.
In 2004, I wanted to drive to Canada with a friend. She was from out of town and hadn't brought her passport. I wanted to go anyway, so I just left my passport at home as well and drove up there anyway. (I remember the pre-9/11 days and figured, no big deal, even though they CLAIM you can't get back into the US without one).
The border agent coming back into the US asked us each a rapidfire series of questions meant to throw you off.
"Where were you born? How long did you live there? What's the major industry in that town?" All quickly, before you even really had a chance to finish your answer.
After asking us each a few questions he just smiled and thanked us and waved us through.
I am the subject of the article and to my knowledge I wasn't 'assessed' in any formal capacity (certainly not at the level of cross-referencing anything with Wikipedia)
I am thoroughly convinced that just getting down and putting code on paper in a confident way got me across that border!
So, if I had any advice for others it would be to do what you normally do in a software interview: act really convincing - even if you're a bit flustered!
I know it's popular to view border guards as complete dolts interfering with everyone's day, but they certainly deserve a bit more credit for what they do.
I doubt a perfect answer to their trivia question is required. If it's in your field you'll be able to say something halfway intelligent in response, if you've lied on your visa it will become obvious pretty quickly.
Outrage about confiscating phones and demanding passwords is justified. This, on the other hand, seems pretty reasonable.
I work in Finance, and when I was on a H1B visa (back in 2010), the immigration officer asked me some bond-related questions, just to see if I had any clue.
They also asked my wife what I was working on.
It's pretty annoying to feel that you're not being trusted, but yes, they don't trust you.
Also the fact that he's Australian is a reassuring proof they don't base these question on color of skin...
-To their credit, looking caucasian while coming from Australia strongly suggest that your family has a history of trouble with the authorities... ;)
Besides, if you want to see who is more criminal-ey in the modern era, the US wins there with a 5x rate of incarceration...
Given that Aborigines were slowly getting the vote between the 1920s and the last vestige in 1967, the idea that voting citizens were being scalped for money is supremely bizarre.
I definitely want to see a source for that. While I'm not heavily into fighting for native rights myself, I hang around a few people that are, and I think that this little nugget of information would have made its way into discussion amongst all the other horrible things that have happened to Aborigines over the years.
What happens if you design an algo with O(N-LogN) but the official answer is O(N^2) -- do you get bonus points or fail?
I doubt the question would be framed like that. They probably hired real engineers to write the questions and then tested if those work properly on other real engineers.
This would be in line with, for example, how Google does early-stage screening -- non-technical people are given a sheet of questions, and if you give an answer that's not verbatim what's on the sheet you're "wrong" and "not qualified" (see http://www.gwan.com/blog/20160405.html).
IMO companies have a hard time finding talented software developers. I'd expect the airport managers [edit: immigration officers] to find not-very-competent people who come up with the very wrong tests.
Probably just to check whether I would start crying and confess I didn't know a thing about finance.
They also asked my wife if she knew all my first names (I have 4!).
But yeah they definitely asked some occupation-related questions.
When I enter the US, it's always hand over passport, put fingers on scanner, accept passport and walk on.
No we aren't. Racism is when you discriminate against a person due to their skin color. We're not discriminating against anyone.
also - article has a big photo of this guy's gormless white mug ;)
also - he's from Sydney, so probably a wanker as well.
FWIW, as a nonwhite person myself, I think that accusing someone of racism for assuming David Thornton from Australia is white is beyond idiocy.
But the idea that my education/knowledge/experience will be checked again, that's weird to me.
White Australian gets asked to print the sum of two numbers. [0]
Black Nigerian gets asked how to balance a binary tree. [1]
[0] https://news.ycombinator.com/item?id=13795363
[1] http://www.independent.co.uk/news/world/americas/us-immigrat...
> “The vibe I got was weird. He asked me a question, then asked me a follow-up question to prove I wasn’t lying.
> “Do they not allow bad software engineers into the United States?” Thornton joked.
See also, more recently: http://money.cnn.com/2017/03/02/technology/andela-engineer-c...
"My software consulting rate is normally $400/hr, plus an initial startup fee, but I'm not authorized to work in your country, so, no."
Last year I was fortunate enough to attend AWS Re:Invent, standing in the queue at McCarran airport, I saw the guard laughing and joking with the people in front of me so I thought ah, maybe they're all not like this!
As soon as it came to me the guy completely changed, he went cold, he spent the most amount of time asking why I'd ticked "business" on my customs form, as I didn't know what to tick, then proceeded to ask me what conference I was going to and what it was about and why I was attending. I know that's his job and he's just making sure everything lines up, but it just felt unwelcoming.
What bothers me more than the US immigration and customs people are the security employees - TSA. I've seen many more of them be well past cold. They are often rude. I've seen them yelling at visitors to the US who are just trying to get through security and obviously don't speak English well. The kicker is when the TSA person doesn't speak proper English themselves and are obviously not very well educated.
Him: What do you do? Me: I am an entepreneur.
Him: Haha, ... we are all entepreneurs, now really, what do you do? Me: Websites
Him: I've heard there is a Sillicone Valley in Russia and they want to take over that ours. Me: Um, okay. (I am from Czech Republic)
If the border police officer for any reason decides that you are suspicious then they will toy with you as they please. That includes asking arbitrary questions under the threat they can send you back to home country for any or no reason. Plus they can fingerprint you and go thru all your travel goods including phone and laptop.
As foreigner you have no rights standing at the border of the country you are entering.
And the border police operates without the checks that a normal police force operates under.
If you are a frequent traveller you better get used to being interrogated; answer short and precise without using any trigger words.
It's the way the questions come out, like a movie. The words come out slowly while the guy looks for something in my eyes.
I haven't been grilled on professional questions, but I wonder what I should say I do. Programmer or Trader are both legit. If I say programmer, I might get a technical question. If I say trader, maybe I just have give him a random stock tip.
I take it as one of those lessons of usefulness of mathematics in daily life. :-)
"So you're a software engineer? What is your most proficient language?"
Response: "Javascript"
"What does the atob function do?"
I was quite taken back and asked to repeat, and the CBP agent spelled out "a t o b". I answered something to do with base64 decoding and was let through
Most of these reposts (including this one in hacker news) have not reached out to me for additional or audience-specific details :)
"Why do you you hate the USA ?"
when he last flew to the US.
"He said the officer appeared to be mid to senior level, and there’s no chance the conversation would have been overheard by anyone else in line."
So basically there is no one who can corroborate with his story. This trash should not be allowed into any publication which calls itself 'news'.
I'm surprised that people actually believe that stuff by default. In this new world, the default should be to distrust the media and that line I quoted above gives a very good reason to distrust it.
This guy you just linked to has posted 11K tweets in the past; obviously an attention/status seeker. Also his follow-up tweet gave it away:
"So @Twitter I can now get the blue tick, yes?"
He almost didn't get any retweets before his 5 minutes of fame.
Wow people on HN can be so gullible.
I'm almost certainly not going to provide it, but I'm still curious if you're willing to elaborate.